home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
win1
/
fres20.zip
/
FRESSRC.EXE
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1993-03-23
|
1KB
|
81 lines
# This Makefile is for MSC 7.0
##### Module Macro #####
NAME = Fres
SRCS = $(NAME).c
OBJS =
##### Library Macro #####
##### Replace the LIBS definition with the following for Windows 3.1
LIBS = libw slibcew mmsystem
MOD = -AS
##### Include Macro #####
INCLS = $(NAME).h
##### Resource Macro #####
RCFILES = $(NAME).rc
##### Windows Version Macro #####
### DEBUG Defined #####
##### Build Option Macros #####
!ifdef DEBUG
DDEF = -DDEBUG
CLOPT = -Zid -Od
MOPT = -Zi
LOPT = /CO /LI /MAP
!else
DDEF =
CLOPT = -Os
LOPT =
!endif
##### General Macros #####
DEF =
##### Tool Macros #####
ASM = masm -Mx $(MOPT) $(DDEF) $(DEF)
CC = cl -nologo -c $(MOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
LINK = link /NOD /NOE $(LOPT)
RC = rc $(DDEF) $(DEF)
HC = hc
##### Inference Rules #####
.c.obj:
$(CC) $*.c
.asm.obj:
$(ASM) $*.asm;
##### Main (default) Target #####
goal: $(NAME).exe
##### Dependents For Goal and Command Line #####
$(NAME).exe: $(SRCS:.c=.obj) $(NAME).def $(NAME).res
$(LINK) @<<
$(SRCS:.c=.obj) $(OBJS),
$(NAME).exe,
$(NAME).map,
$(LIBS),
$(NAME).def
<<
$(RC) $(NAME).res
!ifdef DEBUG
cvpack -p $(NAME).exe
mapsym $(NAME).map
!endif
##### Dependents #####
$(SRCS:.c=.obj): $(INCLS)
$(NAME).res: $(INCLS) $(RCFILES)
##### Clean Directory #####
clean:
-del *.obj
-del *.res
-del *.exe
-del *.map
-del *.sym